
const { ccclass, property } = cc._decorator;

@ccclass
export default class agree extends cc.Component {


    @property(cc.Node)
    private tick: cc.Node = null;
    @property(cc.Node)
    private video: cc.Node = null;

    protected onLoad(): void {
        //@ts-ignore
        window.__prv.doAction("体力特权/体力补给站/钥匙补给站页面勾选", ['ks5', this.tick.parent, this.tick, this.video]);
    }

    public updateBtn() {
        console.log("updateBtn")
        this.tick.active = !this.tick.active
        this.video.active = this.tick.active
        // this.video.active=this.isright
        // this.isright=!this.isright


    }
    // async nextClick(){
    //     if(this.isright){
    //         // 观看广告
    //         await cc.game.emit('clickvideo')
    //         console.log('观看广告')

    //     }
    //     // 下一关
    //     cc.game.emit("clickNext")  
    //     console.log('下一关')
    // }
    // update (dt) {}
}
